<?php

/**
 * 模块信息
 */
return [
  
  // 行为配置
  'action' =>[
    [
      'module' => 'admin',
      'name' => 'config_add',
      'title' => '添加配置',
      'remark' => '添加配置',
      'rule' => '',
      'log' => '[user|get_nickname] 添加了配置，[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'config_edit',
      'title' => '编辑配置',
      'remark' => '编辑配置',
      'rule' => '',
      'log' => '[user|get_nickname] 编辑了配置：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'config_enable',
      'title' => '启用配置',
      'remark' => '启用配置',
      'rule' => '',
      'log' => '[user|get_nickname] 启用了配置：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'config_disable',
      'title' => '禁用配置',
      'remark' => '禁用配置',
      'rule' => '',
      'log' => '[user|get_nickname] 禁用了配置：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'config_delete',
      'title' => '删除配置',
      'remark' => '删除配置',
      'rule' => '',
      'log' => '[user|get_nickname] 删除了配置：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'database_export',
      'title' => '备份数据库',
      'remark' => '备份数据库',
      'rule' => '',
      'log' => '[user|get_nickname] 备份了数据库：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'database_import',
      'title' => '还原数据库',
      'remark' => '还原数据库',
      'rule' => '',
      'log' => '[user|get_nickname] 还原了数据库：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'database_optimize',
      'title' => '优化数据表',
      'remark' => '优化数据表',
      'rule' => '',
      'log' => '[user|get_nickname] 优化了数据表：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'database_repair',
      'title' => '修复数据表',
      'remark' => '修复数据表',
      'rule' => '',
      'log' => '[user|get_nickname] 修复了数据表：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'database_backup_delete',
      'title' => '删除数据库备份',
      'remark' => '删除数据库备份',
      'rule' => '',
      'log' => '[user|get_nickname] 删除了数据库备份：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'hook_add',
      'title' => '添加钩子',
      'remark' => '添加钩子',
      'rule' => '',
      'log' => '[user|get_nickname] 添加了钩子：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'hook_edit',
      'title' => '编辑钩子',
      'remark' => '编辑钩子',
      'rule' => '',
      'log' => '[user|get_nickname] 编辑了钩子：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'hook_delete',
      'title' => '删除钩子',
      'remark' => '删除钩子',
      'rule' => '',
      'log' => '[user|get_nickname] 删除了钩子：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'hook_enable',
      'title' => '启用钩子',
      'remark' => '启用钩子',
      'rule' => '',
      'log' => '[user|get_nickname] 启用了钩子：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'hook_disable',
      'title' => '禁用钩子',
      'remark' => '禁用钩子',
      'rule' => '',
      'log' => '[user|get_nickname] 禁用了钩子：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'menu_add',
      'title' => '添加节点',
      'remark' => '添加节点',
      'rule' => '',
      'log' => '[user|get_nickname] 添加了节点：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'menu_edit',
      'title' => '编辑节点',
      'remark' => '编辑节点',
      'rule' => '',
      'log' => '[user|get_nickname] 编辑了节点：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'menu_delete',
      'title' => '删除节点',
      'remark' => '删除节点',
      'rule' => '',
      'log' => '[user|get_nickname] 删除了节点：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'menu_enable',
      'title' => '启用节点',
      'remark' => '启用节点',
      'rule' => '',
      'log' => '[user|get_nickname] 启用了节点：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'menu_disable',
      'title' => '禁用节点',
      'remark' => '禁用节点',
      'rule' => '',
      'log' => '[user|get_nickname] 禁用了节点：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'module_install',
      'title' => '安装模块',
      'remark' => '安装模块',
      'rule' => '',
      'log' => '[user|get_nickname] 安装了模块：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'module_uninstall',
      'title' => '卸载模块',
      'remark' => '卸载模块',
      'rule' => '',
      'log' => '[user|get_nickname] 卸载了模块：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'module_enable',
      'title' => '启用模块',
      'remark' => '启用模块',
      'rule' => '',
      'log' => '[user|get_nickname] 启用了模块：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'module_disable',
      'title' => '禁用模块',
      'remark' => '禁用模块',
      'rule' => '',
      'log' => '[user|get_nickname] 禁用了模块：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'module_export',
      'title' => '导出模块',
      'remark' => '导出模块',
      'rule' => '',
      'log' => '[user|get_nickname] 导出了模块：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'packet_install',
      'title' => '安装数据包',
      'remark' => '安装数据包',
      'rule' => '',
      'log' => '[user|get_nickname] 安装了数据包：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'packet_uninstall',
      'title' => '卸载数据包',
      'remark' => '卸载数据包',
      'rule' => '',
      'log' => '[user|get_nickname] 卸载了数据包：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'system_config_update',
      'title' => '更新系统设置',
      'remark' => '更新系统设置',
      'rule' => '',
      'log' => '[user|get_nickname] 更新了系统设置：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'attachment_edit',
      'title' => '编辑附件',
      'remark' => '编辑附件',
      'rule' => '',
      'log' => '[user|get_nickname] 编辑了附件：[details]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'attachment_enable',
      'title' => '启用附件',
      'remark' => '启用附件',
      'rule' => '',
      'log' => '[user|get_nickname] 启用了附件：附件ID([details]]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'attachment_disable',
      'title' => '禁用附件',
      'remark' => '禁用附件',
      'rule' => '',
      'log' => '[user|get_nickname] 禁用了附件：附件ID([details]]',
      'status' => 1,
    ],
    [
      'module' => 'admin',
      'name' => 'attachment_delete',
      'title' => '删除附件',
      'remark' => '删除附件',
      'rule' => '',
      'log' => '[user|get_nickname] 删除了附件：附件ID([details]]',
      'status' => 1,
    ],
    
  ],
  'database_prefix' => 'dp_',
  
  // 依赖类
  'need_class' => [
    'pdo',
  ],

  // 依赖扩展
  'need_extension' => [
    'pdo_mysql',
    'fileinfo',
    'curl'
  ],
  // 依赖函数
  'need_function' => [
    'chown',
    'file_get_contents',
    'mb_strlen'
  ],
];
